#include <buola/image/format.h>
#include <buola/image/io.h>
#include <buola/image/drawing/basic.h>
#include <buola/image/adaptors.h>

using namespace buola;

int main()
{
    img::CImage_rgb8 lImage({320,200});//,img::pixel(50,50,50));
    auto lView=img::vflip_view(lImage);
    
    for(int i=0;i<lView.Height()/2;i++)
    {
        lView(i,i)[0]=127;
        lView(i,i)[1]=200;
        lView(i,i)[2]=98;
    }

    img::draw_frame(lView,img::pixel(255,100,100));
    img::save(lImage,io::file("agg1.ppm"));
}